import 'package:kkhousekeep/generated/json/base/json_convert_content.dart';
import 'package:kkhousekeep/models/me_user_info_entity.dart';

MeUserInfoEntity $MeUserInfoEntityFromJson(Map<String, dynamic> json) {
	final MeUserInfoEntity meUserInfoEntity = MeUserInfoEntity();
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		meUserInfoEntity.code = code;
	}
	final MeUserInfoObj? obj = jsonConvert.convert<MeUserInfoObj>(json['obj']);
	if (obj != null) {
		meUserInfoEntity.obj = obj;
	}
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		meUserInfoEntity.msg = msg;
	}
	return meUserInfoEntity;
}

Map<String, dynamic> $MeUserInfoEntityToJson(MeUserInfoEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['code'] = entity.code;
	data['obj'] = entity.obj.toJson();
	data['msg'] = entity.msg;
	return data;
}

MeUserInfoObj $MeUserInfoObjFromJson(Map<String, dynamic> json) {
	final MeUserInfoObj meUserInfoObj = MeUserInfoObj();
	final String? image = jsonConvert.convert<String>(json['image']);
	if (image != null) {
		meUserInfoObj.image = image;
	}
	final int? id = jsonConvert.convert<int>(json['id']);
	if (id != null) {
		meUserInfoObj.id = id;
	}
	return meUserInfoObj;
}

Map<String, dynamic> $MeUserInfoObjToJson(MeUserInfoObj entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['image'] = entity.image;
	data['id'] = entity.id;
	return data;
}